<?php


// no direct access
defined('_JEXEC') or die('Restricted access');

// Include the syndicate functions only once

//$width			 = $params->get('width', '');
//$height	 = $params->get('height', '');
//$speedin		 = $params->get('speedin', 600);
//$speedout	 = $params->get('speedout',200);
$folder		 = $params->get('imagesfolder', '');
$imagesnames = $params->get( 'imagesnames', '' );
$text1 = $params->get( 'text1', '' );
$text2 = $params->get( 'text2', '' );
//$opacity = $params->get('opacity',0.75);
//$color = $params ->get('color','');
$invalid_array_chars = array("\n");

$images_array_a = str_replace("; ", ";", $imagesnames);
$images_array = str_replace($invalid_array_chars, "", $images_array_a);
$imgs = explode(";", $images_array);

$text1_array_a = str_replace("; ", ";", $text1);
$text1_array = str_replace($invalid_array_chars, "", $text1_array_a);
$te1 = explode(";", $text1_array);

$text2_array_a = str_replace("; ", ";", $text2);
$text2_array = str_replace($invalid_array_chars, "", $text2_array_a);
$te2 = explode(";", $text2_array);

require(JModuleHelper::getLayoutPath('mod_longdhslideshow'));
